import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'

// 引入Department.vue页面
import Department from './views/org/Department.vue'

// 引入员工页面
import Employee from './views/org/Employee.vue'

// 抽屉测试页面
import DrawerTest from  './views/org/DrawerTest'

// 字典页面
import Systemdictionarytype from  './views/system/Systemdictionarytype'

// 店铺入驻页面
import ShopRegister from './views/ShopRegister.vue'

import Menu from './views/system/Menu.vue'

// 店铺审核页面
import  Shop from './views/org/Shop.vue'

import Register2 from "./views/org/Register2";

// 权限数据管理
import Permission from './views/system/Permission.vue'

// 角色管理
import Role from  './views/system/Role'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    }, {
        path: '/',
        redirect: '/echarts',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        leaf: true,
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },{
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    /*{
        path: '/',
        component: Home,
        name: '部门管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/department', component: Department, name: '部门管理' },
            { path: '/employee', component: Employee, name: '员工管理' },
            { path: '/shop', component: Shop, name: '店铺管理' },
            /!*{ path: '/DrawerTest', component: DrawerTest, name: '抽屉' },*!/
            { path: '/systemdictionarytype', component: Systemdictionarytype, name: '字典' },
           /!* { path: '/register2', component: Register2, name: '注册'},*!/

        ]
    },
    {/!*[{"id":41,"name":"系统管理","component":null,"url":null,"icon":null,"index":5,"parentId":null,"intro":null,"state":true,"role":null,"father":null,"children":
    [{"id":42,"name":"菜单管理","component":"system/Menu","url":"/menu","icon":null,"index":null,"parentId":null,"intro":null,"state":null,"role":null,"father":null}
    ,{"id":43,"name":"权限管理","component":"system/Permission","url":"/permission","icon":"","index":null,
    "parentId":null,"intro":null,"state":null,"role":null,"father":null}]}]*!/
        path: '/',
        component: Home,
        name: '菜单管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/menu', component: Menu, name: '菜单管理'},
            { path: '/permission', component: Permission, name: '权限管理' },
            { path: '/role', component: Role, name: '角色管理'},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '',
        iconCls: 'fa fa-address-card',
        leaf: true,//只有一个节点
        children: [
            { path: '/page6', component: Page6, name: '导航三' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }*/
];

export default routes;